package org.com.mock.version.module;

import java.io.File;
import java.io.IOException;

import org.com.core.module.AbstractParser;
import org.htmlcleaner.CleanerProperties;
import org.htmlcleaner.HtmlCleaner;
import org.htmlcleaner.PrettyHtmlSerializer;
import org.htmlcleaner.TagNode;


public class Connector extends AbstractParser {

	@Override
	public void LoadHtml(String filePath) throws IOException {
		CleanerProperties props = new CleanerProperties();
		TagNode tagNode = null;
		filePath = "home.html";
		props.setTranslateSpecialEntities(true);
		props.setTransResCharsToNCR(true);
		props.setOmitComments(true);
		tagNode = new HtmlCleaner(props).clean(new File(filePath));
		new PrettyHtmlSerializer(props).writeToFile(tagNode,"home.html", "utf-8");
		
	}

}